//
//  JLCFUIMacro.h
//  QTZ
//
//  Created by ski on 2017/7/5.
//  Copyright © 2017年 ski. All rights reserved.
//

#ifndef JLCFUIMacro_h
#define JLCFUIMacro_h

//＝＝＝＝＝＝＝＝＝＝＝＝尺寸适配相关＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝//
#define IS_IOS9                     (SYSTEM_VERSION >= 9)
#define IS_IOS8                     (SYSTEM_VERSION >= 8)
#define IS_IOS7                     (SYSTEM_VERSION >= 7)
#define IS_IPHONE4                  (SCREEN_HEIGHT < 568)
#define IS_IPHONE5                  (SCREEN_HEIGHT == 568)
#define IS_IPHONE6                  (SCREEN_HEIGHT == 667)
#define IS_IPHONE6Plus              (SCREEN_HEIGHT == 736)
#define IS_IPHONEPlus               (SCREEN_HEIGHT == 736)
//＝＝＝＝＝＝＝＝＝＝＝＝全局需要使用的一些UI的高度宽度＝＝＝＝＝＝＝＝＝＝＝//

#define STATUSBAR_HEIGHT            (IPHONEX ? 44 : 20)

#define FULL_WIDTH                  [[UIScreen mainScreen] bounds].size.width
#define FULL_HEIGHT                 (SCREEN_HEIGHT - (IS_IOS7 ? 0 : STATUSBAR_HEIGHT))

#define IPHONEX                     (SCREEN_HEIGHT == 812.0)
#define IPHONEX_SPACE               (IPHONEX ? 24 : 0)

#define NAVBAR_HEIGHT               (IPHONEX ? 88 : 64)
//#define NAVBAR_CONTAINER_HEIGHT     44.f
#define NAVBAR_CENTER_Y             (IPHONEX ? 66 : 42)

#define TABBAR_HEIGHT               (IPHONEX ? 83 : 49)
//#define TABBAR_HEIGHT               49

#define CONTENT_HEIGHT              (FULL_HEIGHT - 20)
#define CONTENT_VIEW_FRAME          CGRectMake(0, 0, FULL_WIDTH, CONTENT_HEIGHT)
#define FULL_VIEW_FRAME             CGRectMake(0, 0, FULL_WIDTH, FULL_HEIGHT)

// 屏幕高度
#define SCREEN_HEIGHT         [[UIScreen mainScreen] bounds].size.height

// 屏幕宽度
#define SCREEN_WIDTH          [[UIScreen mainScreen] bounds].size.width
#define FitRealValue(value)   ((value)/750.0f*SCREEN_WIDTH)
//rgb取色
#define RGBA(r,g,b,a)   [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
#define RGB(r,g,b)      RGBA(r,g,b,1)

//字体设置
#define FONT(s)          [UIFont systemFontOfSize:(s+4)]
#define BOLD_FONT(s)     [UIFont boldSystemFontOfSize:s]


#endif /* JLCFUIMacro_h */
